﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Entity
{
    public class WMSBasicCustomer
    {
        public int customer_id { get; set; }
        public string customer_code { get; set; }
        public string customer_name { get; set; }
        public int job_type { get; set; }
        public int sources_of_customers { get; set; }
        public string contact_person { get; set; }
        public string contact_phone_number { get; set; }
        public string email_address { get; set; }
        public string customers_address { get; set; }
        public int sales_department_id { get; set; }
        public string account_name { get; set; }
        public string taxid { get; set; }
        public string bank_account { get; set; }
        public string opening_bank { get; set; }
        public string bkaddr { get; set; }
        public string note { get; set; }
        public string create_by { get; set; }
        public DateTime create_time { get; set; }
        public string update_by { get; set; }
        public DateTime update_time { get; set; }


        public int  person_in_charge { get; set; }

        public string annex_code { get; set; }

        public char status { get; set; }    
    }

    public class WMS_Basic_Customer2
    {
        public int customer_id { get; set; }
        public string customer_code { get; set; }
        public string customer_name { get; set; }
        public int job_type { get; set; }
        public int sources_of_customers { get; set; }
        public string contact_person { get; set; }
        public string contact_phone_number { get; set; }
        public string email_address { get; set; }
        public string customers_address { get; set; }
        public int sales_department_id { get; set; }
        public string account_name { get; set; }
        public string taxid { get; set; }
        public string bank_account { get; set; }
        public string opening_bank { get; set; }
        public string bkaddr { get; set; }
        public string note { get; set; }
        public string create_by { get; set; }
        public DateTime create_time { get; set; }
        public string update_by { get; set; }
        public DateTime update_time { get; set; }


        public int person_in_charge { get; set; }

        public string annex_code { get; set; }

        public string status { get; set; }


        // 字典表翻译字段（所属行业、客户来源、状态文字）
        public string industry_name { get; set; }
        public string customer_source_name { get; set; }


        // 组织机构表字段（销售部门名称）
        public string sales_dept_name { get; set; }

        // 用户管理表字段（销售负责人姓名）
        public string sales_person_name { get; set; }


    }
    // 删除请求实体
    public class DeleteRequest
    {
        public string CustomerCode { get; set; }
        public string IsDelete { get; set; }
    }


    /// <summary>
    /// 客户下拉框选项DTO
    /// </summary>
    public class CustomerSelectDto
    {
        public int Value { get; set; } // 客户ID
        public string Label { get; set; } // 客户名称
    }



    // 1. 负责人下拉框DTO（前端下拉框用：value=用户ID，label=用户名）
    public class UserSelectDto
    {
        public int UserId { get; set; } // 对应下拉框的value
        public string UserName { get; set; } // 对应下拉框的label
    }

    // 2. 部门信息DTO（按用户ID查询返回：部门ID+部门名称）
    public class DeptByUserDto
    {
        public int OrganizationId { get; set; } // 部门ID
        public string OrganizationName { get; set; } // 部门名称
    }


}
